<!doctype html>
<html>
 <head>
  <meta charset="UTF-8">  
  <title>修改汽车信息</title>
 </head>
 <body>
<?php
   $cid = $result['cid'];
   $bid = $result['bid'];
   $tid = $result['tid'];
   $carname = $result['carname'];
   $intro = $result['intro'];
   $uploaddate = $result['uploaddate'];
   $pic = $result['pic'];
 ?>

<form method="post"  action="admin.php?c=carphoto&m=carphotoupdate&id=<?php  echo $cid;  ?>"  enctype="multipart/form-data">
<table align="center" border="1" width=500>
<caption>修改视频管理信息</caption>
<tr>
  <td width="20%">cid</td>
  <td width="80%"><?php  echo $cid;  ?>
  <input type="hidden" name="cid" value=<?php  echo $cid;  ?>>  
  </td>
</tr>
<tr>
    <td><label for="bid">汽车品牌</label></td>
    <td>
     <!--  <input type="text" class="form-control" id="tid" name="tid" value="<?php echo $tid;?>"> -->
     <select class="form-control" id="bid" name="bid">
    <option <?php if($bid==1){echo "selected";} ?> value='1' >宝马</option>
    <option <?php if($bid==2){echo "selected";} ?> value='2'  >奥迪</option>
    <option <?php if($bid==3){echo "selected";} ?> value='3'  >丰田</option>
    
<lect>
    </td>
</tr>
<tr>
    <td><label for="tid">汽车类型</label></td>
    <td>
     <!--  <input type="text" class="form-control" id="tid" name="tid" value="<?php echo $tid;?>"> -->
     <select class="form-control" id="tid" name="tid">
    <option <?php if($tid==1){echo "selected";} ?> value='1' >越野</option>
    <option <?php if($tid==2){echo "selected";} ?> value='2'  >超跑</option>
    <option <?php if($tid==3){echo "selected";} ?> value='3'  >轿车</option>
    
<lect>
    </td>
</tr>
<tr>
    <td><label for="carname">汽车名称</label></td>
    <td>
      <input type="text" id="carname" name="carname" value="<?php echo $carname;?>">
    </td>
</tr>
<tr>
    <td><label for="intro">内容简介</label></td>
    <td>
      <textarea class="form-control" id="intro" name="intro"> <?php echo $intro;?></textarea>
    </td>
</tr>
<tr>
    <td><label for="uploaddate">添加日期</label></td>
    <td>
      <input type="date" id="uploaddate" name="uploaddate" value="<?php echo $uploaddate;?>">
    </td>
</tr>
<tr>
    <td><label for="pic">图片</label></td>
    <td>
      <input type="file" id= "pic" name="pic" value="<?php echo $pic;?>">
    </td>
</tr>
<tr>
  <td width=150></td>
  <td>
  <input type="submit" value="修改">
  <input type="reset" value="重置">
  </td>
</tr>
</table>
</form>
 </body>

</html>